#include "NamePipe.hpp"

int main()
{
    namepipe name_pipe(fifoname);

    name_pipe.Create();

    name_pipe.OpenForRead();
    std::string out;
    while (true)
    {
        int res=name_pipe.Read( &out );
        if(!res)
            break;
        std::cout <<"client say@ "<< out << std::endl;
    }
    name_pipe.Close();
    name_pipe.Remove();
}